<?php

include '../configuration.php';

$login = $_POST['login'];
$password = md5($_POST['password']);

$_SESSION['m_login'] = $login;
$_SESSION['m_password'] = $password;

include 'check.php';

if ($checking == 1) {
	header ("Location: main/index.php");
} else{
	header ("Location: admin.php?warning=invalid");
}


?>